//
//  OtherName+OtherName.m
//  ClinicalCollections
//
//  Created by janakiraman gopinath on 5/18/13.
//  Copyright (c) 2013 GOPI. All rights reserved.
//

#import "OtherName+OtherName.h"

@implementation OtherName (OtherName)
+ (void) otherName:(NSArray *) otherNames
        forContext:(NSManagedObjectContext *)context
   forIntervention:(Intervention *)intervention
{
    for (NSString *otherNameString in otherNames) {
        
        OtherName  *otherName = (OtherName *)[NSEntityDescription insertNewObjectForEntityForName:@"OtherName"
                                                                           inManagedObjectContext:context];
        otherName.name = otherNameString;
        otherName.intervention = intervention;
        NSLog(@"OtherName %@", otherName.name);
        
    }
    return;
}
@end
